home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / print / colpr2.zip / PR2COL.BAT < prev    next >
DOS Batch File  |  1993-07-08  |  709b  |  28 lines

  1. @echo off
  2. rem
  3. rem Usage: PR2COL infile
  4. rem
  5.  
  6. rem Reformat the input file to 62 characters/line, then print in 2 columns
  7. rem This is for printers that support a 16.66 or 17 character-per-inch pitch
  8. rem If you desire, there is room to use an 8 character (/M8) or so left margin.
  9.  
  10. if "%1" == "" echo Usage: PR2COL infile
  11. if "%1" == "" goto end
  12. if not "%2" == "" echo Usage: PR2COL infile
  13. if not "%2" == "" goto end
  14.  
  15. rap %1 /W62 \rap.tmp
  16. if not ERRORLEVEL EQ 0 goto raperror
  17. colprint \rap.tmp \colprint.tmp /C2 /L132
  18. if not ERRORLEVEL EQ 0 goto cperror
  19. print \colprint.tmp
  20. goto end
  21. :raperror
  22. echo Error in RAP processing
  23. goto end
  24. :cperror
  25. echo Error in COLPRINT processing
  26. goto end
  27. :end
  28.